from django.conf.urls.defaults import patterns

urlpatterns =  patterns('comunidadcyt.Publicaciones.views',
                        (r'^/$',                     'list_all_publications_view'),
                        (r'^crear/(?P<type>\w+)/$',                     'create_publication_view'),
                        (r'^misPublicaciones/$',                        'mis_publicaciones_view'),
                        (r'^editar/(?P<type>\w+)/(?P<pub_id>\d+)/$',    'edit_publication_view'),
                        (r'^buscarPublicaciones/$',                     'buscarPublicaciones'),
                        (r'^listar/$',                                  'list_all_publications_view'),
                        (r'^ver/revista/(?P<object_id>\d+)/$',          'detallesRevista'),
                        (r'^ver/conferencia/(?P<object_id>\d+)/$',      'detallesConferencia'),
                        (r'^ver/libro/(?P<object_id>\d+)/$',            'detallesLibro'),
                        (r'^ver/tesis/(?P<object_id>\d+)/$',            'detallesTesis'),
                        (r'^ver/paper/(?P<object_id>\d+)/$',            'detallesPaper'),
                        (r'^ver/reporte/(?P<object_id>\d+)/$',          'detallesReporte'),
                        (r'^borrar/revista/(?P<object_id>\d+)/$',       'borrarRevista'),
                        (r'^borrar/conferencia/(?P<object_id>\d+)/$',   'borrarConferencia'),
                        (r'^borrar/libro/(?P<object_id>\d+)/$',         'borrarLibro'),
                        (r'^borrar/tesis/(?P<object_id>\d+)/$',         'borrarTesis'),
                        (r'^borrar/paper/(?P<object_id>\d+)/$',         'borrarPaper'),
                        (r'^borrar/reporte/(?P<object_id>\d+)/$',       'borrarReporte'),
                        
                        (r'^libro/listardeptos/(?P<object_id>\d+)/$',         'listardeptosLibros'),
                        (r'^libro/listargrupos/(?P<object_id>\d+)/$',         'listargruposLibros'),
                        (r'^libro/listarproyectos/(?P<object_id>\d+)/$',      'listarproyectosLibros'),
                        (r'^libro/listarpartners/(?P<object_id>\d+)/$',       'listarpartnersLibros'),
                        
                        (r'^revista/listardeptos/(?P<object_id>\d+)/$',         'listardeptosRevistas'),
                        (r'^revista/listargrupos/(?P<object_id>\d+)/$',         'listargruposRevistas'),
                        (r'^revista/listarproyectos/(?P<object_id>\d+)/$',      'listarproyectosRevistas'),
                        (r'^revista/listarpartners/(?P<object_id>\d+)/$',       'listarpartnersRevistas'),
                        
                        (r'^tesis/listardeptos/(?P<object_id>\d+)/$',         'listardeptosTesis'),
                        (r'^tesis/listargrupos/(?P<object_id>\d+)/$',         'listargruposTesis'),
                        (r'^tesis/listarproyectos/(?P<object_id>\d+)/$',      'listarproyectosTesis'),
                        (r'^tesis/listarpartners/(?P<object_id>\d+)/$',       'listarpartnersTesis'),
                        
                        (r'^conferencia/listardeptos/(?P<object_id>\d+)/$',         'listardeptosConferencias'),
                        (r'^conferencia/listargrupos/(?P<object_id>\d+)/$',         'listargruposConferencias'),
                        (r'^conferencia/listarproyectos/(?P<object_id>\d+)/$',      'listarproyectosConferencias'),
                        (r'^conferencia/listarpartners/(?P<object_id>\d+)/$',       'listarpartnersConferencias'),
                        
                        (r'^paper/listardeptos/(?P<object_id>\d+)/$',         'listardeptosPapers'),
                        (r'^paper/listargrupos/(?P<object_id>\d+)/$',         'listargruposPapers'),
                        (r'^paper/listarproyectos/(?P<object_id>\d+)/$',      'listarproyectosPapers'),
                        (r'^paper/listarpartners/(?P<object_id>\d+)/$',       'listarpartnersPapers'),
                        
                        (r'^reporte/listardeptos/(?P<object_id>\d+)/$',         'listardeptosReportes'),
                        (r'^reporte/listargrupos/(?P<object_id>\d+)/$',         'listargruposReportes'),
                        (r'^reporte/listarproyectos/(?P<object_id>\d+)/$',      'listarproyectosReportes'),
                        (r'^reporte/listarpartners/(?P<object_id>\d+)/$',       'listarpartnersReportes'),
                        
                        (r'^autores/crear/(?P<type>\w+)/(?P<pub_id>\d+)/$',            'crearAutores'),
                        (r'^autores/borrar/(?P<type>\w+)/(?P<pub_id>\d+)/$',           'borrarAutores'),
                        )